package com.yf.esms.model.vo;

import com.yf.esms.model.entries.GoodsInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 99698
 */
@Data
@ApiModel(value = "批量添加商品信息入参")
public class GoodsInsertBatchVo {
    @ApiModelProperty(value = "索引名",required = true,example = "goods")
    @NotEmpty(message = "新增商品时索引名不能为空！")
    private String indexName;
    @ApiModelProperty(value = "商品信息集合",required = true,example = "")
    @NotBlank(message = "商品信息集合不能为空！")
    private List<GoodsInfo> goodsInfos;

}
